
export interface TableEntity {
tableName?:String,
comment?:String
}




export interface AccessMenuResult {
  success: boolean;
  code: number;
  message: string;
  data: {
    data: TableEntity[];
};
}


import { baseRequestClient, requestClient } from '#/api/request';



/**
* 分页${templateName}列表
* @param params 查询参数
*/
export async function listApi(params: Record<string, any>) {
  const res = await requestClient.get<{ page: any }>('/table/list', { params });
  return res;
}

/**
 * 
 * @param params 前端代码生成器
 * @returns 
 */
export async function vueCodeApi(data: Record<string, any>) {
  const res = await requestClient.post<{ page: any }>('/table/vueCode', data);
  return res;
}
